﻿@using InnovaApp.Layers.ResourcesLayer.Properties
@model InnovaApp.Layers.SecurityLayer.Models.ViewModels._LayoutViewModels.LogOn_ViewModel
@using (Html.BeginForm(actionName: null,controllerName: null, method: FormMethod.Post,htmlAttributes: new { @ReturnUrl = Model.ReturnUrl,@class="logonForm",@action=this.Context.Request.Url.PathAndQuery }))
{
    @Html.ValidationSummary(true, Resources.View_LogOn_AuthenticationFailed_Message)
    @Html.HiddenFor(m => m.ReturnUrl);
    <fieldset class="centerMargin25 ui-widget ui-widget-content ui-corner-all padding15">
        <legend>@Resources.View_Account_LogOn_FormTitle</legend>
        <ol>
            <li>
                @Html.LabelFor(m => m.Credentials.UserName)
                @Html.TextBoxFor(m => m.Credentials.UserName)
            </li>
            <li>
                @Html.LabelFor(m => m.Credentials.Password)
                @Html.PasswordFor(m => m.Credentials.Password)
            </li>
            <li>
                @Html.CheckBoxFor(m => m.Credentials.RememberMe)
                @Html.LabelFor(m => m.Credentials.RememberMe, new { @class = "checkbox" })
            </li>
        </ol>
        <div>
            <input type="submit" value="@Resources.View_LogOn_Submit" class="submitButton centred" />
            <a href="/@Model._Languages.SelectedLanguage.Language/forgotpassword" title="@Resources.View_LogOn_PasswordForgotten" class="forgottenPassword">@Resources.View_LogOn_PasswordForgotten</a>

        </div>
    </fieldset>
    <p>
        <a href="/@Model._Languages.SelectedLanguage.Language/Register" alt="@Resources.View_Account_LogOn_RegisterIfNoAccount_2">@Resources.View_Account_LogOn_RegisterIfNoAccount_1</a>
    </p>
}